package org.teamswift.crow.rbac.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.teamswift.crow.rbac.entity.CrowAuthority;
import org.teamswift.crow.rbac.entity.CrowRole;
import org.teamswift.crow.rbac.security.permission.CrowPermission;
import org.teamswift.crow.rest.common.BaseCrowVo;

import java.util.Set;

@EqualsAndHashCode(callSuper = true)
@Data
public class CrowUserVo extends BaseCrowVo<Integer> {

    private Integer id;

    private String username;

    private String name;

    private String mobile;

    private String email;

    private Set<CrowRoleVo> roles;

    private Set<String> rolesName;

    private Set<CrowAuthority> authorities;

    private Set<CrowPermission> permissions;

    private Integer organizationId;

    private boolean su = false;

}
